package com.xmy.cultivate.respons;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 请假申请
 */
@Data
public class LeaveApply {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("班级")
    private String name;

    @ApiModelProperty("请假学生")
    private String studentName;

    @ApiModelProperty("班级")
    private Long gradeId;

    @ApiModelProperty("请假时间")
    private LocalDate schoolDate;

    @ApiModelProperty("科目")
    private String subjects;

    @ApiModelProperty("拒绝原因")
    private String refuseReason;

    @ApiModelProperty("请假原因")
    private String leaveReason;

    @ApiModelProperty("请假状态 0未审核 1已通过 2未通过")
    private Integer status;

    /**
     * created_at
     */
    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

}
